package edu.zut.hb.ambition.pharmacy.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PharmacyMapper;
import com.ruoyi.system.domain.Pharmacy;
import com.ruoyi.system.service.IPharmacyService;


@Service
public class PharmacyServiceImpl implements IPharmacyService
{
    @Autowired
    private PharmacyMapper pharmacyMapper;

    @Override
    public Pharmacy selectPharmacyByPharmacyid(Long pharmacyid)
    {
        return pharmacyMapper.selectPharmacyByPharmacyid(pharmacyid);
    }

    @Override
    public List<Pharmacy> selectPharmacyList(Pharmacy pharmacy)
    {
        return pharmacyMapper.selectPharmacyList(pharmacy);
    }

    @Override
    public int insertPharmacy(Pharmacy pharmacy)
    {
        return pharmacyMapper.insertPharmacy(pharmacy);
    }

    @Override
    public int updatePharmacy(Pharmacy pharmacy)
    {
        return pharmacyMapper.updatePharmacy(pharmacy);
    }

    @Override
    public int deletePharmacyByPharmacyids(Long[] pharmacyids)
    {
        return pharmacyMapper.deletePharmacyByPharmacyids(pharmacyids);
    }
    @Override
    public int deletePharmacyByPharmacyid(Long pharmacyid)
    {
        return pharmacyMapper.deletePharmacyByPharmacyid(pharmacyid);
    }
}
